package ocr

import (
	"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
	"ocr/config"
)

var credential *common.Credential

func init() {
	// 实例化一个认证对象，入参需要传入腾讯云账户secretId，secretKey,此处还需注意密钥对的保密
	// 密钥可前往https://console.cloud.tencent.com/cam/capi网站进行获取
	credential = common.NewCredential(
		config.OcrSecret.GetString("OcrSecret.SecretId"),
		config.OcrSecret.GetString("OcrSecret.SecretKey"),
	)
}
